package cn.hx.mallorder.service.impl;

import cn.hx.mallorder.dao.OmsOrderItemDao;
import cn.hx.mallorder.entity.OmsOrder;
import cn.hx.mallorder.entity.OmsOrderItem;
import cn.hx.mallorder.service.OmsOrderItemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 订单中所包含的商品(OmsOrderItem)表服务实现类
 *
 * @author makejava
 * @since 2022-11-30 16:05:57
 */
@Service("omsOrderItemService")
public class OmsOrderItemServiceImpl extends ServiceImpl<OmsOrderItemDao, OmsOrderItem> implements OmsOrderItemService {

    @Resource
    OmsOrderItemDao omsOrderItemDao;
    @Override
    public List<OmsOrderItem> queryAll(OmsOrderItem orderItem) {
        return null;
    }

    @Override
    @Transactional
    public void deleteByOrderItemId(Long id) {
        deleteByOrderItemId(id);
    }

    @Override
    public Integer findItemById(Long id) {
        return omsOrderItemDao.findItemById(id);
    }


}